package chat.clientToServerMessage;

import chat.server.ClientThread;
import chat.server.Server;

public class ChangeRoom implements ClientToServerMessage{

	private static final long serialVersionUID = 1L;
	private String roomName;
	
	public ChangeRoom(String roomName) {
		this.roomName = roomName;
	}
	
	public synchronized String getRoomName(){
		return roomName;
	}

	@Override
	public void processOnServer(Server server, ClientThread ct) {
		server.changeRoom(this, ct);
	}
}
